$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$f: 19.2;

.home {
  position: relative;
  width: 100%;
  padding-top: 8vw;

  .section1 {
    margin: 4vw 15vw;
    transform: scale(.95);
    .pic {
      img {
        width: 100%;
        display: block;
        object-fit: contain;
        border-radius: 100/$f+vw;
      }
    }
  }

  .section2{
    background: rgba(238, 236, 244, 0.50);
    padding: 5vw 15vw;
    .item{
      display: flex;
      justify-content: space-between;
      margin-bottom: 7vw;
      transform: scale(.95);
      .pic{
        width: 30%;
        img{
          width: 100%;
          border-radius: 120/$f+vw;
          transition: all 600ms;
        }
        &:hover{
          img{
            transform: scale(1.05);
          }
        }
      }
      .info{
        width: 65%;
        .t{
          color: #6456A3;
          font-size: $fontSize_50;
          font-style: italic;
          font-family: 'Newsreader';
        }
        .des{
          color: #999BB0;
          font-size: $fontSize_28;
          font-style: italic;
          font-family: 'Montserrat-Light';
          line-height: 1.5;
          margin: 1.5vw 0 2.5vw 0;
        }
        .nums{
          display: flex;
          justify-content: space-around;
          .i{
            text-align: center;
            .i1{
              color: #7C67D8;
              font-size: $fontSize_64;
              font-weight: 700;
            }
            .tag{
              color: #6456A3;
              font-family: 'Montserrat-Regular.otf';
              font-size: $fontSize_16;
              margin-top: 0.5vw;
            }
          }
        }
        a{
          margin-top: 5vw;
          width: fit-content;
          border-radius: 32/$f+vw;
          background: #6456A3;
          padding: 0.5vw 1vw;
          color:white;
          display: flex;
          justify-content: center;
          align-items: center;
          text-transform: capitalize;
          font-size: $fontSize_16;
          cursor: pointer;
          transition: all 600ms;
          p{
            font-family: 'Lexend';
          }
          svg{
            display: block;
            width: 25/$f+vw;
          }
          &:hover{
            background-color: #61C0BD;
          }
        }
      }
    }
    .item:nth-child(2n){
      flex-direction: row-reverse;
    }
    .item:last-child{
      margin-bottom: 0;
    }
  }

  .section3{
    margin: 4vw 15vw;
    transform: scale(.95);
    .t {
      color: #6456A3;
      font-size: $fontSize_48;
      font-family: 'Montserrat-Regular.otf';
      text-align: center;
    }
    .allPeople{
      margin-top: 4vw;
      .swiper-container{
        width: 100%;
        .items{
          display: flex;
          width: 100%;
          a{
            display: block;
            width: 21%;
            margin-left: 3.2%;
            text-align: center;
            .pic{
              padding: 1vw 0;
              img{
                max-width: 100%;
                border-radius: 120/$f+vw;
                transition: all 600ms;
              }
            }
            .name{
              color: #6456A3;
              font-size: $fontSize_32;
              font-family: 'Montserrat-Regular.otf';
              position: relative;
              padding: 2vw 0 0.5vw 0;
              transition: all 600ms;
              text-transform: uppercase;
              &::after{
                content:'';
                display: block;
                background: #999BB0;
                width: 100/$f+vw;
                left: 50%;
                transform: translateX(-50%);
                bottom:0;
                height: 1px;
                position: absolute;
              }
            }
            .des{
              color: #999BB0;
              font-family: 'Montserrat-Light';
              font-size: $fontSize_22;
              font-style: italic;
              margin: 0.5vw 5%;
              line-height: 1.6;
              // word-break: break-all;
              text-overflow: ellipsis;
              display: -webkit-box;
              -webkit-box-orient: vertical;
              -webkit-line-clamp: 3;
              overflow: hidden;
            }
            &:hover{
              .pic{
                img{
                  transform: scale(1.05);
                }
              }
              .name{
                color: #61C0BD;
              }
            }
          }
        }
      }
      .swiper-pagination{
        position: static;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 4vw;
        .swiper-pagination-bullet{
          width: 12/$f+vw;
          height: 12/$f+vw;
          background: #D9D9D9;
          opacity: 1;
          margin: 0 0.1vw;
          transition: all 600ms;
        }
        .swiper-pagination-bullet-active{
          width: 35/$f+vw;
          border-radius: 20px;
        }
      }
    }
  }
  .section4{
    background: #61C0BD;
    text-align: center;
    padding: 5vw 0 3vw 0;
    .t{
      color: #FFF;
      font-size: $fontSize_70;
      font-family: 'Montserrat-Regular.otf';
      text-transform: capitalize;
      line-height: 1.2;
    }
    a{
      display: flex;
      justify-content: center;
      width: fit-content;
      margin: 3vw auto 0 auto;
      align-items: center;
      p{
        font-size: $fontSize_24;
        font-style: italic;
        font-family: 'Newsreader';
        color:white;
        text-transform: capitalize;
      }
      svg{
        display: block;
        margin-top: 0.3vw;
        width: 30/$f+vw;
      }
    }
  }




  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .section1{
      margin: 20px 5%;
      transform: scale(1);
      .pic{
        img{
          border-radius: 50px;
        }
      }
    }
    .section2{
      padding: 30px 5%;
      .item{
        flex-direction: column !important;
        margin-bottom: 30px;
        transform: scale(1);
        .pic{
          width: 100%;
        }
        .info{
          width: 100%;
          margin-top: 20px;
          .t{
            font-size: 24px;
          }
          .des{
            font-size: 18px;
          }
          .nums{
            flex-direction: column;
            .i{
              width: 100%;
              margin-bottom: 15px;
              .i1{
                font-size: 38px;
              }
              .tag{
                font-size: 14px;
                margin-top: 5px;
              }
            }
          }
          a{
            padding: 8px 20px;
            margin: 30px auto;
            p{
              font-size: 14px;
            }
            svg{
              width: auto;
            }
          }
        }
      }
    }
    .section3{
      margin: 30px 5%;
      transform: scale(1);
      .t{
        font-size: 24px;
      }
      .allPeople{
        margin-top: 30px;
        .swiper-container{
          .items{
            flex-wrap: wrap;
            justify-content: space-between;
             a{
              width: 48%;
              margin-left: 0;
              margin-bottom: 20px;
              .name{
                font-size: 20px;
                padding: 20px 0 10px 0;
                &::after{
                  width: 50px;
                }
              }
              .des{
                font-size: 18px;
              }
             }
          }
        }
        .swiper-pagination{
          margin-top: 30px;
          .swiper-pagination-bullet{
            width: 10px;
            height: 10px;
            margin: 0 2px;
          }
          .swiper-pagination-bullet-active{
            width: 30px;
          }
        }
      }
    }
    .section4{
      padding: 40px 0 30px 0;
      .t{
        font-size: 32px;
      }
      a{
        margin: 20px auto 0 auto;
        p{
          font-size: 18px;
        }
        svg{
          width: 25px;
          transform: translateY(2px);
        }
      }
    }
  }
}